Approve the transaction tickets
The Approve the transaction tickets API is used to approve or sign the transaction tickets. This API facilitates the approval process for tickets related to send transactions.
Method: POST
{{URL}}/jsonrpc
Headers
Name | Value |
---|---|
Content-Type | application/json |
Example
Payload Parameters
Parameter | Description |
---|---|
ID Mandatory | String It represents the unique identifier or ID associated with the transaction ticket. Ex: "1088001" |
requestID Mandatory | String It denotes the unique identifier or ID associated with the request or transaction. Ex: "175001" |
ticketName Mandatory | String It specifies the name or identifier associated with the transaction ticket. Ex: "WALLET_SEND" |
xdr Mandatory | Number It contains the encoded XDR (Stellar Decentralized Exchange Record) data representing the transaction. Ex: "AAAAAgAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAGQAAk9GAAAACgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAAEAAAAAC3p5R6SWwUzGtIR4+3aqUFZWQt2HOdKL+VDa8l7eZO0AAAAAAAAAAAHJw4AAAAAAAAAAAUE6UjMAAABAUfkhG/T1AgPJcu6moHlFNcMRXD9KOv+4nKkE5MtfY1bARHaB8e/Put2QOSe+62LAzLiZRUuWhM2iYp2Qd+B0BA==" |
- cURL
- C#
- Go
- NodeJs
curl --location '{{url}}/rpc/WalletService/UpdateTransaction' \
--header 'DiviceID: 8020' \
--header 'Signature: keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic e3tFbWFpbH19Ont7UGFzc3dvcmR9fQ==' \
--data '{"ID":"1088001","requestID":"175001","ticketName":"WALLET_SEND","xdr":"AAAAAgAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAGQAAk9GAAAACgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAAEAAAAAC3p5R6SWwUzGtIR4+3aqUFZWQt2HOdKL+VDa8l7eZO0AAAAAAAAAAAHJw4AAAAAAAAAAAUE6UjMAAABAUfkhG/T1AgPJcu6moHlFNcMRXD9KOv+4nKkE5MtfY1bARHaB8e/Put2QOSe+62LAzLiZRUuWhM2iYp2Qd+B0BA=="}'
var options = new RestClientOptions("{{url}}")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/fednowbackend/rpc/WalletService/UpdateTransaction", Method.Post);
request.AddHeader("DiviceID", "8020");
request.AddHeader("Signature", "keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=");
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Basic e3tFbWFpbH19Ont7UGFzc3dvcmR9fQ==");
var body = @"{
" + "\n" +
@" ""ID"": ""1088001"",
" + "\n" +
@" ""requestID"": ""175001"",
" + "\n" +
@" ""ticketName"": ""WALLET_SEND"",
" + "\n" +
@" ""xdr"": ""AAAAAgAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAGQAAk9GAAAACgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAAEAAAAAC3p5R6SWwUzGtIR4+3aqUFZWQt2HOdKL+VDa8l7eZO0AAAAAAAAAAAHJw4AAAAAAAAAAAUE6UjMAAABAUfkhG/T1AgPJcu6moHlFNcMRXD9KOv+4nKkE5MtfY1bARHaB8e/Put2QOSe+62LAzLiZRUuWhM2iYp2Qd+B0BA==""
" + "\n" +
@"}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "{{url}}/rpc/WalletService/UpdateTransaction"
method := "POST"
payload := strings.NewReader(`{`+"
"+`
"ID": "1088001",`+"
"+`
"requestID": "175001",`+"
"+`
"ticketName": "WALLET_SEND",`+"
"+`
"xdr": "AAAAAgAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAGQAAk9GAAAACgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAAEAAAAAC3p5R6SWwUzGtIR4+3aqUFZWQt2HOdKL+VDa8l7eZO0AAAAAAAAAAAHJw4AAAAAAAAAAAUE6UjMAAABAUfkhG/T1AgPJcu6moHlFNcMRXD9KOv+4nKkE5MtfY1bARHaB8e/Put2QOSe+62LAzLiZRUuWhM2iYp2Qd+B0BA=="`+"
"+`
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("DiviceID", "8020")
req.Header.Add("Signature", "keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=")
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "Basic e3tFbWFpbH19Ont7UGFzc3dvcmR9fQ==")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': '{{url}}',
'path': '/fednowbackend/rpc/WalletService/UpdateTransaction',
'headers': {
'DiviceID': '8020',
'Signature': 'keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=',
'Content-Type': 'application/json',
'Authorization': 'Basic e3tFbWFpbH19Ont7UGFzc3dvcmR9fQ=='
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({
"ID": "1088001",
"requestID": "175001",
"ticketName": "WALLET_SEND",
"xdr": "AAAAAgAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAGQAAk9GAAAACgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAAEAAAAAC3p5R6SWwUzGtIR4+3aqUFZWQt2HOdKL+VDa8l7eZO0AAAAAAAAAAAHJw4AAAAAAAAAAAUE6UjMAAABAUfkhG/T1AgPJcu6moHlFNcMRXD9KOv+4nKkE5MtfY1bARHaB8e/Put2QOSe+62LAzLiZRUuWhM2iYp2Qd+B0BA=="
});
req.write(postData);
req.end();
Body
{
"ID": "1088001",
"requestID": "175001",
"ticketName": "WALLET_SEND",
"xdr": "AAAAAgAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAGQAAk9GAAAACgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAAEAAAAAC3p5R6SWwUzGtIR4+3aqUFZWQt2HOdKL+VDa8l7eZO0AAAAAAAAAAAHJw4AAAAAAAAAAAUE6UjMAAABAUfkhG/T1AgPJcu6moHlFNcMRXD9KOv+4nKkE5MtfY1bARHaB8e/Put2QOSe+62LAzLiZRUuWhM2iYp2Qd+B0BA=="
}
Response: 200
Response Parameters
Parameter | Description |
---|---|
ID | String It represents the unique identifier or ID associated with the transaction ticket. Ex: "1088001" |
asset | String It denotes the asset code or symbol of the transaction. Ex: "XLM" |
reason | String It provides a description or reason associated with the transaction. Ex: "test" |
destination | String It specifies the public key or address of the destination account for the transaction. Ex: "GAFXU6KHUSLMCTGGWSCHR63WVJIFMVSC3WDTTUUL7FINV4S63ZSO2JIV" |
fee | String It indicates the fee amount associated with the transaction. Ex: "100" |
memoType | String It denotes the type of memo used in the transaction. Ex: "text" |
xdr | String It contains the encoded XDR (Stellar Decentralized Exchange Record) data representing the transaction. Ex: "AAAAAgAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAGQAAk9GAAAACgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAAEAAAAAC3p5R6SWwUzGtIR4+3aqUFZWQt2HOdKL+VDa8l7eZO0AAAAAAAAAAAHJw4AAAAAAAAAAAUE6UjMAAABAUfkhG/T1AgPJcu6moHlFNcMRXD9KOv+4nKkE5MtfY1bARHaB8e/Put2QOSe+62LAzLiZRUuWhM2iYp2Qd+B0BA==" |
amount | String It represents the amount or quantity of the asset being transacted. Ex: "3" |
signers | Array |
ID | String It represents the unique identifier or ID associated with the signer. Ex: "994002" |
name | String It specifies the name or identifier of the signer. Ex: "ChennaReddy" |
createdDate | String It denotes the date and time when the signer was created. Ex: "0001-01-01T00:00:00Z" |
updatedDate | String It indicates the date and time when the signer was last updated or modified. Ex: "0001-01-01T00:00:00Z" |
requestID | String Represent. Ex: "175001" |
message | String It provides a message or information regarding the status of the transaction submission. Ex: "Transaction Submitted Successful" |
hash | String It represents the hash value associated with the transaction. Ex: "b60a51543f3fb8fdc7c3a53a68e324b700a8c60eb47ec586a000b4fc3408152b" |
senderID | String It represents the unique identifier or ID associated with the sender's wallet or account. Ex: "1088001" |
senderName | String It specifies the name or identifier associated with the sender's wallet or account. Ex: "bug" |
senderPublicKey | String It denotes the public key associated with the sender's wallet or account. Ex: "GAFKNNLIC7R3GKO5DEF5XAP3M35J6TEZRVM4VJP7FVFOC3ENLSO4ZC4K" |
transactionType | String It indicates the type of transaction, in this case. Ex: "WALLET_SEND" |
issuer | String It represents the public key or address of the asset issuer. Ex: "native" |
receiverID | String It represents the unique identifier or ID associated with the receiver's wallet or account. Ex: "9991103002" |
receiverName | String It specifies the name or identifier associated with the receiver's wallet or account. Ex: "SignerTest108" |
receiverType | String It indicates the type of the receiver's wallet or account. Ex: "INTERNAL" |
receiverPublicKey | String It denotes the public key associated with the receiver's wallet or account. Ex: "GAFXU6KHUSLMCTGGWSCHR63WVJIFMVSC3WDTTUUL7FINV4S63ZSO2JIV" |
ticketName | String It specifies the name or identifier associated with the transaction ticket. Ex: "WALLET_SEND" |
actualRequiredThreshold | Number It represents the actual required threshold or minimum number of signatures needed to authorize the transaction. Ex: 4 |
ProcessId | String It represents the unique identifier or ID associated with the transaction process. Ex: "b60a51543f3fb8fdc7c3a53a68e324b700a8c60eb47ec586a000b4fc3408152b" |
{
"ID": "1088001",
"asset": "XLM",
"reason": "test",
"destination": "GAFXU6KHUSLMCTGGWSCHR63WVJIFMVSC3WDTTUUL7FINV4S63ZSO2JIV",
"fee": "100",
"memoType": "text",
"xdr": "AAAAAgAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAGQAAk9GAAAACgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAAKprVoF+OzKd0ZC9uB+2b6n0yZjVnKpf8tSuFsjVydzAAAAAEAAAAAC3p5R6SWwUzGtIR4+3aqUFZWQt2HOdKL+VDa8l7eZO0AAAAAAAAAAAHJw4AAAAAAAAAAAUE6UjMAAABAUfkhG/T1AgPJcu6moHlFNcMRXD9KOv+4nKkE5MtfY1bARHaB8e/Put2QOSe+62LAzLiZRUuWhM2iYp2Qd+B0BA==",
"amount": "3",
"signers": [
{
"ID": "994002",
"name": "ChennaReddy",
"createdDate": "0001-01-01T00:00:00Z",
"updatedDate": "0001-01-01T00:00:00Z"
}
],
"requestID": "175001",
"message": "Transaction Submitted Successful",
"hash": "b60a51543f3fb8fdc7c3a53a68e324b700a8c60eb47ec586a000b4fc3408152b",
"senderID": "1088001",
"senderName": "bug",
"senderPublicKey": "GAFKNNLIC7R3GKO5DEF5XAP3M35J6TEZRVM4VJP7FVFOC3ENLSO4ZC4K",
"transactionType": "WALLET_SEND",
"issuer": "native",
"receiverID": "9991103002",
"receiverName": "SignerTest108",
"receiverType": "INTERNAL",
"receiverPublicKey": "GAFXU6KHUSLMCTGGWSCHR63WVJIFMVSC3WDTTUUL7FINV4S63ZSO2JIV",
"ticketName": "WALLET_SEND",
"actualRequiredThreshold": 4,
"ProcessId": "b60a51543f3fb8fdc7c3a53a68e324b700a8c60eb47ec586a000b4fc3408152b"
}